Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build divviup_api_integration_test with admin #1100

Merged
merged 1 commit into from
Jun 14, 2024

Conversation

tgeoghegan
Copy link
Contributor

We want the divviup CLI packaged into the
divviup_api_integration_test container to be built with feature admin for reasons discussed in #1099. In this commit:

  • add feature admin to builds of divviup_api_integration_test in docker-release.yaml so that the bundled CLI will have --first-party and --shared
  • adds a service pair_aggregator to compose.dev.override.yaml that uses the /divviup entrypoint to pair janus_1_aggregator as a first-party, shared aggregator
  • factors the build stanza out of services in compose.dev.override.yaml to apply features to them uniformly
  • tunes the health checks on divviup-api and the aggregators so they will succeed sooner and speed up startup

Part of #1096

We want the `divviup` CLI packaged into the
`divviup_api_integration_test` container to be built with feature
`admin` for reasons discussed in #1099. In this commit:

- add feature `admin` to builds of `divviup_api_integration_test` in
  `docker-release.yaml` so that the bundled CLI will have
  `--first-party` and `--shared`
- adds a service `pair_aggregator` to `compose.dev.override.yaml` that
  uses the `/divviup` entrypoint to pair `janus_1_aggregator` as a
  first-party, shared aggregator
- factors the `build` stanza out of services in
  `compose.dev.override.yaml` to apply features to them uniformly
- tunes the health checks on `divviup-api` and the aggregators so they
  will succeed sooner and speed up startup

Part of #1096
@tgeoghegan tgeoghegan merged commit 020eb54 into main Jun 14, 2024
9 checks passed
@tgeoghegan tgeoghegan deleted the timg/build-cli-with-admin-feature branch June 14, 2024 19:20
tgeoghegan added a commit that referenced this pull request Jun 14, 2024
In #1100, we started building `divviup_api_integration_test` with
feature `admin`. This breaks `docker-release.yml`, because the Rust
features are used to construct GH Actions cache keys, and commas are
illegal there (at the very least, `docker buildx build --cache-from`
doesn't like it). Construct the cache key by joining with `-` to work
`around this.

Additionally, this _should_ have broken `docker.yml`, but I forgot to
add the `admin` feature there, which this PR corrects.

Part of #1096
tgeoghegan added a commit that referenced this pull request Jun 14, 2024
In #1100, we started building `divviup_api_integration_test` with
feature `admin`. This breaks `docker-release.yml`, because the Rust
features are used to construct GH Actions cache keys, and commas are
illegal there (at the very least, `docker buildx build --cache-from`
doesn't like it). Construct the cache key by joining with `-` to work
`around this.

Additionally, this _should_ have broken `docker.yml`, but I forgot to
add the `admin` feature there, which this PR corrects.

Part of #1096
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants